#include "StdAfx.h"
#include "LocalFile.h"

CLocalFile::CLocalFile(void)
{
}

CLocalFile::~CLocalFile(void)
{
}

STDMETHODIMP CLocalFile::Init()
{

	return S_OK;
}

STDMETHODIMP CLocalFile::Uninit()
{
	if (m_pRot)
	{
		m_pRot = INULL;
	}
	
	if (m_pCallBack)
	{
		m_pCallBack = INULL;
	}

	return S_OK;
}

STDMETHODIMP CLocalFile::SetDownloadInfo(const download_info& info)
{
	return S_FALSE;
}

STDMETHODIMP CLocalFile::StartDownload(LPCWSTR lpszUrl,  OUT sha1_hash& urlhash ,DSType dsType/* = DS_Unknow*/, BOOL bCheckExist/* = FALSE*/)
{
	return S_FALSE;
}


STDMETHODIMP CLocalFile::Pause ()
{
	return S_OK;
}

STDMETHODIMP CLocalFile::Resume()
{
	return S_OK;
}

STDMETHODIMP CLocalFile::Stop(BOOL remove_files /*= FALSE*/)
{
	return S_OK;
}

STDMETHODIMP CLocalFile::GetStat(StateMessageID statid, void* data, int nlen)
{
	return S_OK;
}

STDMETHODIMP CLocalFile::SetStat(StateMessageID statid, void* data, int nlen)
{
	return S_OK;
}


STDMETHODIMP CLocalFile::GetShareFile(IShareFile**pFileRead)
{
	return S_OK;
}